import random
random.seed()
guessed = random.randint(1, 100)
tries = 0
while tries < 10:
    user_guess=int(input("Guess my number in range from 1 to 100\n"))
    tries=tries+1
    if user_guess > guessed:
        print("My number is smaller")
    elif user_guess == guessed:
        print("You did it in ",tries," times")
        break
    else:
        print("My number is bigger")
else:
    print("Looser!")
